package com.koko.mapper;

import com.koko.order.entity.Cart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper {

    Integer checkIfExists(Cart cart);
    void insert(Cart cart);

    List<Cart> getGamesByUserId(Long userId);

    void deleteById(Long id);

    void deleteByUserId(Long userId);
}
